package com.eleventwelve.iris.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.opentides.bean.BaseEntity;
import org.opentides.bean.SystemCodes;

/**
 * 
 * @author Ashley
 *
 */
@Entity
@Table(name="CONTACT_NUMBER")
public class ContactNumber extends BaseEntity{
	private static final long serialVersionUID = -3530604354031382848L;

	@ManyToOne
	@JoinColumn(name="OWNER_ID")
	private Patient owner;
	
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="TYPE")
	private SystemCodes type;
	
	@Column(name="NUMBER")
	private String number;
	
	@Transient
	private transient boolean isDeleted;

	public Patient getOwner() {
		return owner;
	}

	public void setOwner(Patient owner) {
		this.owner = owner;
	}

	public SystemCodes getType() {
		return type;
	}

	public void setType(SystemCodes type) {
		this.type = type;
	}

	public String getNumber() {
		return number;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	public boolean getIsDeleted() {
		return isDeleted;
	}

	public void setIsDeleted(boolean isDeleted) {
		this.isDeleted = isDeleted;
	}

	
	
}
